<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<html>
<head>
<title><bean:message key="display.${buildingForm.method eq 'edit' ? 'edit' : 'add' }"/><bean:message key="info.building.name"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<%@ include file="/sks/cms/page/share/validate.inc" %>
<script type="text/javascript">
function bodyOnLoad() {
	new tt.NRV().set(0, '++').add("carNumber");//'++'表示无穷大
	new tt.LV().set(0, 128).add("propertyCompany");
	new tt.LV().set(0, 200).add("propertyPrice", "carRentPrice", "carSellPrice");
	${buildingForm.method eq 'edit' ? 'tt.validate();' : ''}
}
</script>
</head>
<body onload="bodyOnLoad();" bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<html:form styleId="buildingForm" action="/cms/house/building.do" method="post" onsubmit="return tt.validate();">
<html:hidden property="buildingId"/>
<html:hidden property="name"/>
<html:hidden property="status"/>
<html:hidden property="publishTime"/>
<html:hidden property="type"/>
<input type="hidden" name="method" value="${buildingForm.method}">
  <table width="90%" border="0" cellspacing="2" cellpadding="3" align="center">
    <tr bgcolor="#ffbe26">
    	<td colspan="2">
    		<%@ include file="buildingMenu.inc"%>
    	</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="20%"><div align="right"><bean:message key="info.building.name"/>：</div></td>
      <td width="80%" valign="middle">${buildingForm.name}</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right"><bean:message key="info.propertyType"/>：</div></td>
      <td>
      	<html:select disabled="<%=isReadOnly%>" property="propertyTypeId">
      		<html:option value=""></html:option>
      		<html:options collection="pts" property="propertyTypeId" labelProperty="name"/>
      	</html:select>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">物业公司：</div></td>
      <td valign="middle"><html:text disabled="<%=isReadOnly%>" property="propertyCompany" size="50"/>
        <html:errors property="propertyCompany"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">物业费：</div></td>
      <td valign="middle"><html:text disabled="<%=isReadOnly%>" property="propertyPrice" size="50"/>
        <html:errors property="propertyPrice"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right"><bean:message key="info.building.field.carNumber"/>：</div></td>
      <td valign="middle"><html:text disabled="<%=isReadOnly%>" property="carNumber" size="50"/>
        <html:errors property="carNumber"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">车位月租均价：</div></td>
      <td valign="middle"><html:text disabled="<%=isReadOnly%>" property="carRentPrice" size="50"/>
        <html:errors property="carRentPrice"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">车位平均售价：</div></td>
      <td valign="middle"><html:text disabled="<%=isReadOnly%>" property="carSellPrice" size="50"/>
        <html:errors property="carSellPrice"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td colspan="2"> <div align="center"> 
          <button <%=isReadOnly?"disabled=\"disabled\"":""%> type="submit" class="frm_btn"><bean:message key="display.save"/></button>
        </div></td>
    </tr>
  </table>
</html:form>
<br>
</body>
</html>